<div class="panel-header">
    <i/>通知公告
    <div more-link="more.link" ng-if="more&&more.enabled!==false">{{more.text||'更多'}}</div>
</div>
<div class="panel-content">
    <div class="pure-g">
        <div ng-repeat="notice in notices_1|limitTo : 3"
             class="pure-u-1 notice"
             title="【{{notice.TYPE_NAME}}】{{notice.DESCR+'\n\n'}}{{notice.SUBMIT_PERSON}} 发布于 {{notice.SUBMIT_TIME|moment:'format':'YYYY-MM-DD HH:mm:ss'}}"
             ng-mouseenter="notices._current=$index;"
             ng-click="openNoticeDetail(notice)">
            <div style="padding-right: 50px; white-space: nowrap;overflow: hidden;text-overflow:ellipsis;">
                <i class="icon" title="{{notice.TYPE_NAME}}" ng-style="{backgroundColor:getTypeColor(notice)}"></i>
                <span style="white-space: nowrap;overflow: hidden">{{notice.TITLE}}</span>
            </div>

            <div class="notice-time"
                 title="{{notice.SUBMIT_TIME|moment:'format':'YYYY-MM-DD HH:mm:ss'}}">
                {{notice.SUBMIT_TIME|moment:'fromNow'}}
            </div>
        </div>
        <div ng-if="notices_1.length==0" class="pure-u-1 notice" style="text-align: center">
            暂无公告！
        </div>

    </div>
</div>
